#include "Task_Button.h"





#define Button_TASK_PRIO 12
#define Button_STK_SIZE 256
TaskHandle_t ButtonTask_Handler;
QueueHandle_t Button_GpsModule_sem;
void Button_task(void *pvParameters);




void task_Button_Create(void)
{
	//??OSD??
    xTaskCreate((TaskFunction_t )Button_task,
                (const char*    )"Button_task",
                (uint16_t       )Button_STK_SIZE,
                (void*          )NULL,
                (UBaseType_t    )Button_TASK_PRIO,
                (TaskHandle_t*  )&ButtonTask_Handler);
			
		
}

#include "stdbool.h"
#include "math.h"
#include <stdio.h>

/* LED0 ???? */
void Button_task(void *pvParameters)
{

	
	while(1)
	{		
	if(Correction_Mode == _Correction_OFF)
		{
			button_ticks();
			vTaskDelay(2);
		}
		else
			vTaskDelay(2);
	}
}